#@cmsLayout()

#define cmsContent()
<div class="cms-breadcrumb">
	<i class="layui-icon layui-icon-flag"></i>
	<span class="layui-breadcrumb">
	  	<a href="">站点管理</a>
	  	<a><cite>系统设置</cite></a>
	</span>
</div>

<div class="body-card layui-card">
	<form id="updateSite" action="#(ctx)/cmsSite/updateCurrentSite" class="layui-form" method="post" onsubmit="return false;">
  		#(token)
  		<input class="layui-hide" type="text" name="id" value="#(SiteInfo.siteId??)">
  		<div class="layui-form-item">
    		<label class="layui-form-label"><span class="color-warn">*</span> 站点名称</label>
    		<div class="layui-input-inline">
      			<input type="text" name="siteName" class="layui-input" value="#(SiteInfo.siteName??)">
    		</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label"><span class="color-warn">*</span> 站点标识</label>
    		<div class="layui-input-inline">
      			<input type="text" name="siteSign" class="layui-input layui-disabled" value="#(SiteInfo.siteSign??)">
    		</div>
    		<div class="layui-form-mid layui-word-aux">只能是英文字母和数字</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">站点域名</label>
    		<div class="layui-input-inline">
      			<input type="text" name="siteUrl" class="layui-input layui-disabled" value="#(SiteInfo.siteUrl??)">
    		</div>
    		<div class="layui-form-mid layui-word-aux">站点部署域名，读取配置文件中的值，需要在配置文件中维护</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label"><span class="color-warn">*</span> 图片大小</label>
    		<div class="layui-input-inline">
      			<input type="text" name="imgMaxSize" placeholder="请输入图片上传大小限制" value="#(SiteInfo.imgMaxSize??)" class="layui-input">
    		</div>
    		<div class="layui-form-mid layui-word-aux">支持单个图片的最大大小值，单位M</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label"><span class="color-warn">*</span> 文件大小</label>
    		<div class="layui-input-inline">
      			<input type="text" name="fileMaxSize" value="#(SiteInfo.fileMaxSize??)" placeholder="请输入文件上传大小限制" class="layui-input">
    		</div>
    		<div class="layui-form-mid layui-word-aux">支持单个文件的最大大小值，单位M</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label"><span class="color-warn">*</span> 视频大小</label>
    		<div class="layui-input-inline">
      			<input type="text" name="videoMaxSize" placeholder="请输入视频上传大小限制" value="#(SiteInfo.videoMaxSize??)" class="layui-input">
    		</div>
    		<div class="layui-form-mid layui-word-aux">支持单个视频的最大大小值，单位M</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label"><span class="color-warn">*</span> 图片格式</label>
    		<div class="layui-input-inline">
      			<input type="text" name="imgSuffix" placeholder="请输入图片上传支持格式" value="#(SiteInfo.imgSuffix??SiteInfo.thumbnailSuffix??)" class="layui-input">
    		</div>
    		<div class="layui-form-mid layui-word-aux">支持图片后缀，以|分割</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label"><span class="color-warn">*</span> 文件格式</label>
    		<div class="layui-input-inline">
      			<input type="text" name="fileSuffix" value="#(SiteInfo.fileSuffix??)" placeholder="请输入文件上传支持格式" class="layui-input">
    		</div>
    		<div class="layui-form-mid layui-word-aux">支持文件后缀，以|分割</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label"><span class="color-warn">*</span> 视频格式</label>
    		<div class="layui-input-inline">
      			<input type="text" name="videoSuffix" placeholder="请输入视频上传支持格式" value="#(SiteInfo.videoSuffix??)" class="layui-input">
    		</div>
    		<div class="layui-form-mid layui-word-aux">支持视频后缀，以|分割</div>
  		</div>
		<div class="layui-form-item" pane>
			<label class="layui-form-label">文本编辑器</label>
			<div class="layui-input-block">
				<input type="radio" name="editor" value="wangEditor" title="wangEditor" #if(SiteInfo.editor=='wangEditor'||SiteInfo.editor==''||SiteInfo.editor==null) checked #end>
				<input type="radio" name="editor" value="TinyMCE" title="TinyMCE" #if(SiteInfo.editor=='TinyMCE') checked #end>
			</div>
		</div>
  		<div class="layui-form-item" pane>
    		<label class="layui-form-label">访问日志</label>
    		<div class="layui-input-inline">
      			<input type="checkbox" name="cdsAccessLog" value="1" #if(SiteInfo.cdsAccessLog??=='1') checked #end lay-skin="switch" lay-text="开启|关闭">
    		</div>
    		<div class="layui-form-mid layui-word-aux">开启后将记录网站访问情况</div>
  		</div>
  		<div class="layui-form-item" pane>
    		<label class="layui-form-label">管理日志</label>
    		<div class="layui-input-inline">
      			<input type="checkbox" name="cmsAccessLog" value="1" #if(SiteInfo.cmsAccessLog??=='1') checked #end lay-skin="switch" lay-text="开启|关闭">
    		</div>
    		<div class="layui-form-mid layui-word-aux">开启后将记录管理端操作</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">SEO标题</label>
    		<div class="layui-input-block">
      			<input type="text" name="siteTitle" placeholder="请输入SEO标题" value="#(SiteInfo.siteTitle??)" class="layui-input">
    		</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">SEO关键字</label>
    		<div class="layui-input-block">
      			<input type="text" name="siteKeys" placeholder="请输入SEO关键字" value="#(SiteInfo.siteKeys??)" class="layui-input">
    		</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">SEO描述</label>
    		<div class="layui-input-block">
      			<input type="text" name="siteDes" placeholder="请输入SEO描述" value="#(SiteInfo.siteDes??)" class="layui-input">
    		</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">ICP备案号</label>
    		<div class="layui-input-inline">
      			<input type="text" name="icpNo" placeholder="请输入ICP备案号" value="#(SiteInfo.icpNo??)" class="layui-input">
    		</div>
    		<div class="layui-form-mid layui-word-aux">ICP备案号</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">公安备案号</label>
    		<div class="layui-input-inline">
      			<input type="text" name="securityNo" placeholder="请输入公安备案号" value="#(SiteInfo.securityNo??)" class="layui-input">
    		</div>
    		<div class="layui-form-mid layui-word-aux">公安备案号</div>
  		</div>
  		<div class="layui-form-item">
    		<div class="layui-input-block">
    			#if(SiteInfo.siteId.toInt()>0)
      			<button class="layui-btn" onclick="ajaxSaveForm('#updateSite')">立即提交</button>
      			#else
      			<button class="layui-btn layui-disabled">默认站点不支持界面配置修改</button>
      			#end
      			<a class="layui-btn layui-btn-primary" href="javascript:history.go(-1);">返回</a>
    		</div>
  		</div>
  	</form>
</div>

#@jsInit()
#end